const {defineConfig} = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true,
    devServer: {
        host: '0.0.0.0',
        port: 8080,
        open: true,
        // https: false,
        // 代理跨域（mock 不需要配置，这里只是个事列）
        proxy: {
            "/api": {
                target: "https://mock.mengxuegu.com/mock/68009e3680a48b3de1e17210/example", // easymock
                changeOrigin: true,
                pathRewrite: {
                    '^/api': '' // 重写路径，去掉/api前缀
                }
            }
        }
    }
})
